﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace collection_storedlist_priactice
{
    class Program
    {
        static void Main(string[] args)
        {
           
            SortedList list1 = new SortedList();
            list1.Add(0, "a");
            list1.Add(1, "b");
            list1.Add(2, "c");
            
           
            IList myKeyList = list1.GetKeyList();
            IList myValueList = list1.GetValueList();

            Console.WriteLine("\t-键-\t-值-");
            for (int i = 0; i < list1.Count; i++)
                Console.WriteLine("\t{0}\t{1}", myKeyList[i], myValueList[i]);

        }
    }
}
    

